﻿using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category7
{
  public class MT730 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagDefinition U0002;
    private static SwiftTagSubItemDefinition U0003;
    private static SwiftTagDefinition U0004;
    private static SwiftTagSubItemDefinition U0005;
    private static SwiftTagDefinition U0006;
    private static SwiftTagSubItemDefinition U0007;
    private static SwiftTagDefinition U0008;
    private static SwiftTagSubItemDefinition U000E;
    private static SwiftTagChoiceDefinition U000F;
    private static SwiftTagDefinition U0010;
    private static SwiftTagSubItemDefinition U0011;
    private static SwiftTagSubItemDefinition U0012;
    private static SwiftTagDefinition U0013;
    private static SwiftTagSubItemDefinition U0014;
    private static SwiftTagSubItemDefinition U0015;
    private static SwiftTagSubItemDefinition U0016;
    private static SwiftTagChoiceDefinition U0017;
    private static SwiftTagDefinition U0018;
    private static SwiftTagSubItemDefinition U0019;
    private static SwiftTagSubItemDefinition U001A;
    private static SwiftTagDefinition U001B;
    private static SwiftTagSubItemDefinition U001C;
    private static SwiftTagSubItemDefinition U001D;
    private static SwiftTagDefinition U001E;
    private static SwiftTagDefinition U001F;

    [Description("Senders Reference")]
    public Tag20 SendersReference_20
    {
      get
      {
        return new Tag20((SwiftElement) this, 0, (SwiftDefinitionElement) MT730.U0002);
      }
    }

    [Description("Senders Reference")]
    public Tag20 Tag20_SendersReference
    {
      get
      {
        return this.SendersReference_20;
      }
    }

    [Description("Receiver’s Reference")]
    public Tag21 ReceiversReference_21
    {
      get
      {
        return new Tag21((SwiftElement) this, 0, (SwiftDefinitionElement) MT730.U0004);
      }
    }

    [Description("Receiver’s Reference")]
    public Tag21 Tag21_ReceiversReference
    {
      get
      {
        return this.ReceiversReference_21;
      }
    }

    [Description("Account Identification")]
    public Tag25 AccountIdentification_25
    {
      get
      {
        return new Tag25((SwiftElement) this, 0, (SwiftDefinitionElement) MT730.U0006);
      }
    }

    [Description("Account Identification")]
    public Tag25 Tag25_AccountIdentification
    {
      get
      {
        return this.AccountIdentification_25;
      }
    }

    [Description("Date Of Message Being Acknowledged")]
    public Tag30 DateOfMessageBeingAcknowledged_30
    {
      get
      {
        return new Tag30((SwiftElement) this, 0, (SwiftDefinitionElement) MT730.U0008);
      }
    }

    [Description("Date Of Message Being Acknowledged")]
    public Tag30 Tag30_DateOfMessageBeingAcknowledged
    {
      get
      {
        return this.DateOfMessageBeingAcknowledged_30;
      }
    }

    [Description("Amount Of Charges")]
    public Tag32B AmountOfCharges_32B
    {
      get
      {
        return new Tag32B((SwiftElement) this, 0, (SwiftDefinitionElement) MT730.U0010);
      }
    }

    [Description("Amount Of Charges")]
    public Tag32B Tag32B_AmountOfCharges
    {
      get
      {
        return this.AmountOfCharges_32B;
      }
    }

    [Description("Amount Of Charges")]
    public Tag32D AmountOfCharges_32D
    {
      get
      {
        return new Tag32D((SwiftElement) this, 0, (SwiftDefinitionElement) MT730.U0013);
      }
    }

    [Description("Amount Of Charges")]
    public Tag32D Tag32D_AmountOfCharges
    {
      get
      {
        return this.AmountOfCharges_32D;
      }
    }

    [Description("Account With Bank")]
    public Tag57A AccountWithBank_57A
    {
      get
      {
        return new Tag57A((SwiftElement) this, 0, (SwiftDefinitionElement) MT730.U0018);
      }
    }

    [Description("Account With Bank")]
    public Tag57A Tag57A_AccountWithBank
    {
      get
      {
        return this.AccountWithBank_57A;
      }
    }

    [Description("Account with Bank")]
    public Tag57D AccountWithBank_57D
    {
      get
      {
        return new Tag57D((SwiftElement) this, 0, (SwiftDefinitionElement) MT730.U001B);
      }
    }

    [Description("Account with Bank")]
    public Tag57D Tag57D_AccountWithBank
    {
      get
      {
        return this.AccountWithBank_57D;
      }
    }

    [Description("Charges")]
    public Tag71B Charges_71B
    {
      get
      {
        return new Tag71B((SwiftElement) this, 0, (SwiftDefinitionElement) MT730.U001E);
      }
    }

    [Description("Charges")]
    public Tag71B Tag71B_Charges
    {
      get
      {
        return this.Charges_71B;
      }
    }

    [Description("Sender To Receiver Information")]
    public Tag72 SenderToReceiverInformation_72
    {
      get
      {
        return new Tag72((SwiftElement) this, 0, (SwiftDefinitionElement) MT730.U001F);
      }
    }

    [Description("Sender To Receiver Information")]
    public Tag72 Tag72_SenderToReceiverInformation
    {
      get
      {
        return this.SenderToReceiverInformation_72;
      }
    }

    public MT730()
      : base(true)
    {
    }

    public MT730(SwiftMessage message)
      : base(message)
    {
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT730.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT730.MessageDefinition = new SwiftMessageDefinition("MT730", "Interim Transaction Report");
      MT730.U0002 = new SwiftTagDefinition("SendersReference_20", "Senders Reference");
      MT730.U0002.TagName = ":20:";
      MT730.U0003 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT730.U0002.Elements.Add((SwiftDefinitionElement) MT730.U0003);
      MT730.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT730.U0002);
      MT730.U0004 = new SwiftTagDefinition("ReceiversReference_21", "Receiver’s Reference");
      MT730.U0004.TagName = ":21:";
      MT730.U0005 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT730.U0004.Elements.Add((SwiftDefinitionElement) MT730.U0005);
      MT730.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT730.U0004);
      MT730.U0006 = new SwiftTagDefinition("AccountIdentification_25", "Account Identification");
      MT730.U0006.TagName = ":25:";
      MT730.U0006.Mandatory = false;
      MT730.U0007 = new SwiftTagSubItemDefinition("Account", "Account");
      MT730.U0006.Elements.Add((SwiftDefinitionElement) MT730.U0007);
      MT730.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT730.U0006);
      MT730.U0008 = new SwiftTagDefinition("DateOfMessageBeingAcknowledged_30", "Date Of Message Being Acknowledged");
      MT730.U0008.TagName = ":30:";
      MT730.U000E = new SwiftTagSubItemDefinition("Date", "Date");
      MT730.U0008.Elements.Add((SwiftDefinitionElement) MT730.U000E);
      MT730.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT730.U0008);
      MT730.U000F = new SwiftTagChoiceDefinition("Choice", "");
      MT730.U000F.Mandatory = false;
      MT730.U000F.Multiple = true;
      MT730.U0010 = new SwiftTagDefinition("AmountOfCharges_32B", "Amount Of Charges");
      MT730.U0010.TagName = ":32B:";
      MT730.U0011 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT730.U0010.Elements.Add((SwiftDefinitionElement) MT730.U0011);
      MT730.U0012 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT730.U0010.Elements.Add((SwiftDefinitionElement) MT730.U0012);
      MT730.U000F.Elements.Add((SwiftDefinitionElement) MT730.U0010);
      MT730.U0013 = new SwiftTagDefinition("AmountOfCharges_32D", "Amount Of Charges");
      MT730.U0013.TagName = ":32D:";
      MT730.U0014 = new SwiftTagSubItemDefinition("Date", "Date");
      MT730.U0013.Elements.Add((SwiftDefinitionElement) MT730.U0014);
      MT730.U0015 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT730.U0013.Elements.Add((SwiftDefinitionElement) MT730.U0015);
      MT730.U0016 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT730.U0013.Elements.Add((SwiftDefinitionElement) MT730.U0016);
      MT730.U000F.Elements.Add((SwiftDefinitionElement) MT730.U0013);
      MT730.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT730.U000F);
      MT730.U0017 = new SwiftTagChoiceDefinition("Choice", "");
      MT730.U0017.Mandatory = false;
      MT730.U0017.Multiple = true;
      MT730.U0018 = new SwiftTagDefinition("AccountWithBank_57A", "Account With Bank");
      MT730.U0018.TagName = ":57A:";
      MT730.U0019 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT730.U0019.Mandatory = false;
      MT730.U0018.Elements.Add((SwiftDefinitionElement) MT730.U0019);
      MT730.U001A = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT730.U0018.Elements.Add((SwiftDefinitionElement) MT730.U001A);
      MT730.U0017.Elements.Add((SwiftDefinitionElement) MT730.U0018);
      MT730.U001B = new SwiftTagDefinition("AccountWithBank_57D", "Account with Bank");
      MT730.U001B.TagName = ":57D:";
      MT730.U001C = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT730.U001C.Mandatory = false;
      MT730.U001B.Elements.Add((SwiftDefinitionElement) MT730.U001C);
      MT730.U001D = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT730.U001B.Elements.Add((SwiftDefinitionElement) MT730.U001D);
      MT730.U0017.Elements.Add((SwiftDefinitionElement) MT730.U001B);
      MT730.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT730.U0017);
      MT730.U001E = new SwiftTagDefinition("Charges_71B", "Charges");
      MT730.U001E.TagName = ":71B:";
      MT730.U001E.Mandatory = false;
      MT730.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT730.U001E);
      MT730.U001F = new SwiftTagDefinition("SenderToReceiverInformation_72", "Sender To Receiver Information");
      MT730.U001F.TagName = ":72:";
      MT730.U001F.Mandatory = false;
      MT730.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT730.U001F);
    }
  }
}
